module.exports = class extends think.Model {
  // 获取完整HTTP请求路径
  async getFullPath(id) {
    const image = await this.where({
      id: id
    }).find();
    if (think.isEmpty(image)) {
      return '';
    }
    return `${image['base_url']}${path}`;
  }
};
